package us.oh.k12.wkw.robot.subsystem;

import edu.wpi.first.wpilibj.Solenoid;

public class ClimbingSystem extends SystemBase {

	private Solenoid tiltPlungerRelay;
	private int tiltPlungerFireCount = 0;
	private boolean tiltPlungerExtended = false;

	public ClimbingSystem() {

		super("ClimbingSystem");

		try {

			this.tiltPlungerRelay = new Solenoid(3);

		} catch (Exception anEx) {
			this.error("ClimbingSystem()", anEx);
		}

	}

	public void tiltPlungerFire() {
		this.tiltPlungerRelay.set(true);
		this.tiltPlungerFireCount++;
		this.tiltPlungerExtended = true;
	}

	public void tiltPlungerRetract() {
		this.tiltPlungerRelay.set(false);
		this.tiltPlungerExtended = false;
	}

	public boolean getTiltPlungerState() {
		return this.tiltPlungerRelay.get();
	}

	protected void initDefaultCommand() {

		try {

			// no implementation

		} catch (Exception anEx) {
			this.error("initDefaultCommand()", anEx);
		}
	}

}
